<?php

namespace app\common\controller;

use app\common\event\AdminCheckRight;
use think\App;

/**
 * 权限校验控制器
 * Class MemberAuthController
 * @package common\controller
 */
class MemberAuthController extends TokenController
{
    /**
     * @var array 设置Ture控制器方法全局跳过权限验证,可以是数组或者字符串
     */
    protected $no_auth = TRUE;

    public function __construct(App $app = null)
    {
        parent::__construct($app);
        //检测控制器需不需要权限验证
        if (!empty($this->no_auth) && checkMixedExist($this->no_auth, $this->request->action())) {
            return;
        }
        //权限验证
//        event(AdminCheckRight::class);
    }
}
